package com.ssy.lingxi.product.model.request.material;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import java.io.Serializable;

/**
 * 商品能力 - 物料流程规则配置 修改状态
 * @author 彭冬冬
 * @version 2.0.0
 * @date 2022/3/28 16:04
 */
public class MaterialProcessUpdateStatusVO implements Serializable {
    private static final long serialVersionUID = -1082114232919551727L;

    /**
     * 流程规则配置id
     */
    @NotNull(message = "流程规则配置id要大于0")
    @Positive(message = "流程规则配置id要大于0")
    private Long processId;

    /**
     * 状态
     * 0 - 停用
     * 1 - 启用
     */
    @NotNull(message = "状态值枚举：0-停用，1-启用")
    @Min(value = 0, message = "状态值枚举：0-停用，1-启用")
    @Max(value = 1, message = "状态值枚举：0-停用，1-启用")
    private Integer status;


    public Long getProcessId() {
        return processId;
    }

    public void setProcessId(Long processId) {
        this.processId = processId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
